package com.run.runbbs.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class IndexData {
    private int id;
    private int userId;
    private double weight;//体重
    private double temperature;//体温
    private double sphygmus;//脉搏
    private double bloodGlucoseLimosis;//空腹血糖
    private double bloodGlucoseMeal;//餐后2h血糖
    private double uricAcid;//尿酸
    private double totalCholesterol;//总胆固醇
    private double diastolicPressure;//舒张压
    private double systolicPressure;//收缩压
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private int delFlag;

    @TableField(exist = false)
    private String realName;
}
